<div id="nav">
    <ul>
        <li><a href="/index.php">主页</a></li>
        <?php
        foreach ($navs as $key => $value) {
            ?>
            <li name="<?php echo $value->id; ?>"><a
                href="/index.php/info/more/<?php echo $value->id; ?>/"><?php echo $value->name; ?></a></li>
            <?php }?>
        <li><a>联系我们</a></li>
    </ul>
</div>